// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueResource from 'vue-resource'
import Vuex from 'vuex'
import store from './vuex/store.js'

Vue.config.productionTip = false
Vue.use(VueResource)
Vue.use(Vuex)

/* eslint-disable no-new */
new Vue({
  router,
  store,
  components: {
    App
  },
  template: '<App/>',
  directives: {
    focus: {
      update: function (el, {
        value
      }) {
        if (value) {
          el.focus()
        }
      }
    }
  }
}).$mount('#app')
